<?php

/**
 * @file
 * Custom theme implementation to display a single Drupal page.
 */

?>
<div id="navbar" class="navbar navbar-medium navbar-inverse navbar-static-top">
    <div class="navbar-inner">
        <div class="container">
            <div class="header-links">
                <?php if ($secondary_menu): ?>
                    <?php print '欢迎，' ?>
                    <div class="pull-right">
                        <a href="<?php echo base_path(); ?>app/download"><img src="<?php echo base_path();?>sites/all/themes/tweme/images/images/14.png" width="20px" height="20px"><?php print '手机聚农360' ?></a>&nbsp;&nbsp;&nbsp;
                        <?php if ($logged_in) : ?>
                            <?php if($page['alert_messages']){ print '消息'.$page['alert_messages'];}else{print "<a onclick=\"javascript:void window.open('".base_path()."contact/list','1446518728896', 'width=542,height=670,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;\"><img src='".base_path()."sites/all/themes/tweme/images/images/zx.png' width='20px' height='20px'>咨询/投诉</a>";} ?>
                        <?php endif ?>
                        <?php if (!$logged_in) : ?>
                            <a onclick="javascript:void window.open('<?php echo base_path(); ?>contact/list','1446518728896', 'width=542,height=670,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;"><img src='<?php echo base_path();?>sites/all/themes/tweme/images/images/zx.png' width='20px' height='20px'>咨询/投诉</a>
                        <?php endif ?>
                    </div>
					<span class="line1">
                    <?php foreach ($secondary_menu as $item): ?>
                        <?php print l($item['title'], $item['href']) ?>
                    <?php endforeach ?>
                    </span>
                    <?php if (!$logged_in) : ?>
                        <a href="<?php echo base_path();?>csna/qq"><img src="<?php echo base_path();?>sites/all/themes/tweme/images/images/qq.png" width="20px" height="20px"><?php print '用QQ账号登录' ?></a>
                    <?php endif ?>
                <?php endif ?>
            </div>
        </div>
    </div>
</div>

<!-- Header -->
<header id="header" class="container-wrapper">
    <div class="container">
        <a href="<?php print check_url($front_page) ?>">
            <div class="logo">
                <img src="<?php print base_path() . drupal_get_path('theme', 'tweme') . '/images/logo.png'; ?>"/>
            </div>
        </a>
        <?php if ($page['search']): ?>
            <?php print render($page['search']) ?>
        <?php endif ?>
        <!--    --><?php //if ($preface): ?>
        <!--      --><?php //print $preface ?>
        <!--    --><?php //endif ?>
        <img src="<?php print base_path() . drupal_get_path('theme', 'tweme') . '/images/images/junong360.png'; ?>" class="front-ewm-img"/>
    </div>
</header>
<!-- Main -->
<div id="main">
    <div class='user-login-class'>
      <div class="container">
        <?php print $messages ?>
        <div class="row-fluid">

            <!-- Content -->
            <section id="content" class="span<?php print $content_cols ?>">
              <?php print render($page['content']) ?>
            </section>
        </div>
      </div>
    </div>
</div>
<?php if ($page['footer']): ?>
  <!-- footer -->
  <footer id="footer" class="container-wrapper">
    <div class="container">
      <?php print render($page['footer']) ?>
    </div>
  </footer>
<?php endif ?>
